<script setup lang="ts">
import defImg from '@/assets/agent/def_agent.svg'
const props = withDefaults(
  defineProps<{
    avatar?: string
    title: string
    description?: string
  }>(),
  {
    avatar: '',
    title: '',
    description: ''
  }
)
</script>
<template>
  <div class="opening-remarks">
      <img class="opening-remarks-avatar" :src="props?.avatar || defImg" alt="">
      <div class="opening-remarks-content">
        <div class="opening-remarks-title">{{ props.title }}</div>
        <div class="opening-remarks-description">{{ props.description }}</div>
      </div>
  </div>
</template>
<style scoped lang="scss">
.opening-remarks {
  //width: 100%;
  display: flex;
  flex-direction: row;
  background: linear-gradient( 90deg, #E7EEFF 0%, #DAEAFF 48%, #DAF4FF 100%);
  border-radius: 8px 8px 8px 8px;
  padding: 16px;
  &-avatar {
    width: 60px;
    height: 60px;
    margin-right: 16px;
  }
  &-content {
    flex: 1;
    width: 0;
  }
  &-title {
    font-weight: 500;
    font-size: 16px;
    color: #191919;
    line-height: 30px;
    margin-top: 5px;
  }
  &-description {
    font-weight: 400;
    font-size: 12px;
    color: #333333;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

}
</style>
